﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class AssetData : MonoBehaviour {
    public List<Object> asset = new List<Object>();
    public List<string> path = new List<string>();

    public List<Mesh> mesh = new List<Mesh>();
    public List<Texture2D> uv1 = new List<Texture2D>();
    public List<Texture2D> uv2 = new List<Texture2D>();
    public List<GameObject> obj = new List<GameObject>();
    public List<Material> material = new List<Material>();
    public List<string> names = new List<string>();

    //// Use this for initialization
    //void Start () {

    //}
    string despath = "";
 
    void Start()
    {
        //despath = "Vox/SceneModel/";
        MeshFilter[] allmeshfilter = transform.GetComponentsInChildren<MeshFilter>();
        foreach (MeshFilter item in allmeshfilter)
        {
            if (item.mesh != null && item.gameObject.name != "Cross" && item.gameObject.name != "Fluid")
            {
                asset.Add(item.mesh);
                path.Add( item.gameObject.name);
            }
        }
    }

    //// Update is called once per frame
    void Update()
    {
       
    }
}
